package com.blog.service;

import com.blog.pojo.ThumbsUp;

/**
 * Copyright (C), 2022
 * Author: 苏大大
 * Date: 2022-04-25 17:04
 * FileName: ThumbsUpService
 * Description: 博客点赞业务层接口
 */
public interface ThumbsUpService {
    /***
     * 取消点赞
     * @param blogId
     * @param uid
     * @return
     */
    int deleteThumbsUp(Long blogId,Long uid);

    /***
     * 点赞
     * @param thumbsUp
     * @return
     */
    int insetThumbsUp(ThumbsUp thumbsUp);

    /***
     * 查看用户点赞状态
     * @param blogId
     * @param uid
     * @return
     */
    ThumbsUp selectThumbsUp(Long blogId,Long uid);
}
